﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using ggUI.UnitTests;

namespace gg
{
    class Program
    {
        public static void Main(string[] args)
        {
            // TestDateTimeParser.TestParser();
            string input = string.Empty;
            while (!input.Equals("exit"))
            {
                Console.Write("Break your parser: ");
                input = Console.ReadLine();
                Console.WriteLine(QuickParser.Parse(input));
            }
        }

        private static DateTime ConvertDayToDate(int day)
        {
            Debug.Assert(day >= 0 && day < 7);
            int today = (int)DateTime.Now.DayOfWeek;
            Boolean weekdayIsBeforeToday = day < today;
            if (weekdayIsBeforeToday)
            {
                day = day + 7;
            }
            int daysToAdd = day - today;
            return DateTime.Now.AddDays(daysToAdd);
        }
    }
}
